//
//  UIView+HKToast.h
//  HKProject
//
//  Created by 胡锦涛 on 2020/5/22.
//  Copyright © 2020 胡锦涛. All rights reserved.
//


#import <UIKit/UIKit.h>


NS_ASSUME_NONNULL_BEGIN
typedef enum{
    HK_TOAST_TOP,
    HK_TOAST_MIDDLE,
    HK_TOAST_BOTTOM
}HK_TOAST_POSTION;

typedef enum {
    HK_TOAST_WHITE_FONT,
    HK_TOAST_BLACK_FONT,
}HK_TOAST_TYPE;


@interface UIView (HKToast)
#pragma mark - Loading相关
/// Loading 不消失
- (void)hk_showLoading;
- (void)hk_showLoadingWithText:(NSString*)text;
- (void)hk_showLoadingWithColor:(UIColor *)color text:(NSString*)title;
/// loading消失
- (void)hk_showLoadingAfterDelay:(CGFloat)duration;
- (void)hk_showLoadingWithText:(NSString*)text afterDelay:(CGFloat)duration;
/// 移除Loading
- (void)hk_removeLoading;

/// 展示Toast Msg
- (void)hk_toast:(NSString *)msg;
- (void)hk_toast:(NSString *)msg postion:(HK_TOAST_POSTION)postion;
- (void)hk_toast:(NSString *)msg type:(HK_TOAST_TYPE)type;
- (void)hk_toast:(NSString *)msg postion:(HK_TOAST_POSTION)postion type:(HK_TOAST_TYPE)type;
- (void)hk_toast:(NSString *)msg during:(NSTimeInterval)during;
- (void)hk_toast:(NSString *)msg during:(NSTimeInterval)during postion:(HK_TOAST_POSTION)postion;
- (void)hk_toast:(NSString *)msg during:(NSTimeInterval)during postion:(HK_TOAST_POSTION)postion type:(HK_TOAST_TYPE)type;
@end

NS_ASSUME_NONNULL_END
